from time import sleep

from base.base import Base
from utils.file_utils import FileUtils

class page_select(Base):

    # 支付订单查询管理
    def transaction_management_select(self,loc,loc2,loc3,loc4,loc5):
        self.switch_node("transaction_management")
        self.click('transaction_manage')
        self.logger.info('点击交易管理')
        self.click('payment_order_management')
        self.logger.info('点击支付订单管理')
        self.send_keys('merchant_number',loc)
        self.logger.info('输入商户编号')
        self.send_keys('merchant_name', loc2)
        self.logger.info('输入商户名称')
        self.send_keys('merchant_order', loc3)
        self.logger.info('输入商户订单号')
        self.send_keys('order_start_time', loc4)
        self.logger.info('下单开始时间')
        self.send_keys('order_end_time', loc5)
        self.logger.info('下单结束时间')
        self.click('select')
        self.logger.info('点击查询按钮')






